<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{#段落标签<p></p>#}
{#<form action="http://localhost:5000/result" method="post">#}
{#动态生成路径   result而不是/result#}
<form action="{{ url_for("result") }}" method="post">
    <p>姓名 ：<input type="text" name="xingming"></p>
    <p>性别 ：<input type="text" name="xingbie"></p>
    <p><input type="submit" value="提交"></p>
</form>
</body>
</html>